package com.anlu.yue.model;

/**
 * 类描述:返回码
 *
 * @author 赵希坤 zhaoxikun
 * @date 2020/12/11 10:07
 */
public interface SuperResultCodeUtil {

    /********公有错误码*************************************************/

    /**
     * 成功
     */
    ResultCode SUCCESS = ResultCode.newInstance(200, "success");
    /**
     * 失败
     * unknown\ error=很抱歉，您的操作失败了，我们建议您重试一下!重试后，如仍然无法解决，请联系管理员或网盘客服。
     */
    ResultCode FAILURE = ResultCode.newInstance(999, "unknown error");
    /**
     * 参数错误
     */
    ResultCode INVALID_PARAM_VALUE = ResultCode.newInstance(998, "invalid param value");
    /**
     * 数据未找到
     */
    ResultCode DATA_NOT_FOUND = ResultCode.newInstance(997, "data_not_found");
    /**
     * no\ authority=操作失败，您没有权限
     */
    ResultCode NO_AUTHORITY = ResultCode.newInstance(996, "no authority");

    /**
     * 身份认证已过期，请重新登录
     */
    ResultCode INVALID_SESSION = ResultCode.newInstance(10004, "Invalid session");

    /********业务错误码*************************************************/

    /**
     * 超出空间大小
     */
    ResultCode OVER_NAMESPACE_TOTAL_SIZE = ResultCode.newInstance(40001, "超出空间大小");
    /**
     * 并发控制
     */
    ResultCode CONCURRENCY_CTRL = ResultCode.newInstance(40002, "并发控制");
    /**
     * 资源不可用
     */
    ResultCode RESOURCE_INVALID = ResultCode.newInstance(40003, "资源不可用");
    /**
     * token失效
     */
    ResultCode TOKEN_INVALID = ResultCode.newInstance(40004, "token失效");
    /**
     * 手机号不存在
     */
    ResultCode TEL_NOT_EXIST = ResultCode.newInstance(40005, "手机号不存在");
    /**
     * 手机号未验证
     */
    ResultCode TEL_UNVERIFIED = ResultCode.newInstance(40006, "手机号未验证");
    /**
     * bad\ mobile\ captcha=短信验证码错误
     */
    ResultCode BAD_MOBILE_CAPTCHA = ResultCode.newInstance(40007, "bad mobile captcha");
    /**
     * user\ not\ found\ under\ account=当前账户下找不到此用户
     */
    ResultCode USER_NOT_FOUND_UNDER_ACCOUNT = ResultCode.newInstance(40008, "user not found under account");
    /**
     * 添加或更新决策失败
     */
    ResultCode ADD_OR_UPDATE_POLICY_FAIL = ResultCode.newInstance(40009, "Failed to add or update policy");
    /**
     * 账号权限不满足操作要求
     */
    ResultCode PERMISSION_NOT_MEET_REQUIREMENT = ResultCode.newInstance(40010, "The account permission does not meet the operation requirements");
    /**
     * account\ space\ limit=总账户空间不足，无法完成操作！请联系管理员。
     */
    ResultCode ACCOUNT_SPACE_LIMIT = ResultCode.newInstance(40011, "account space limit");
    /**
     * region_not_exist=数据中心不存在
     */
    ResultCode REGION_NOT_EXIST = ResultCode.newInstance(40012, "region_not_exist");
    /**
     * 文件夹创建失败
     */
    ResultCode FOLDER_CREATE_FAILURE = ResultCode.newInstance(40013, "文件夹创建失败");
    /**
     * 数据中心不能变更
     */
    ResultCode DATA_CENTER_CANNOT_CHANGED = ResultCode.newInstance(40014, "data_center_cannot_changed");
    /**
     * 数据已删除，无法进行更新
     */
    ResultCode DATA_HAS_BEEN_DELETED_AND_CANNOT_UPDATED = ResultCode.newInstance(40015, "data_has_been_deleted_and_cannot_updated");
    /**
     * 数据库中不存在该数据，无法进行更新操作
     */
    ResultCode DATA_NOT_EXIST_IN_DB_UPDATE_CANNOT_BE_PERFORMED = ResultCode.newInstance(40016, "data_not_exist_in_db_update_cannot_be_performed");
    /**
     * 部分管控成员不可为空
     */
    ResultCode SOME_CONTROL_MEMBERS_CANNOT_BE_EMPTY = ResultCode.newInstance(40017, "some_control_members_cannot_be_empty");
    /**
     * 管控路径的值为路径时，路径列表不能为空
     */
    ResultCode WHEN_VALUE_OF_CONTROL_PATH_IS_A_PATH_THE_PATH_LIST_CANNOT_EMPTY = ResultCode.newInstance(40018, "when_value_of_control_path_is_a_path_the_path_list_cannot_empty");
    /**
     * 管控路径的值错误
     */
    ResultCode VALUE_OF_CONTROL_PATH_WRONG = ResultCode.newInstance(40019, "value_of_control_path_wrong");
    /**
     * 没有找到匹配的角色信息
     */
    ResultCode NO_MATCHING_ROLE_INFO_FOUND = ResultCode.newInstance(40020, "no_matching_role_info_found");
    /**
     * 代理类型错误
     */
    ResultCode WRONG_PROXY_TYPE = ResultCode.newInstance(40021, "wrong_proxy_type");
    /**
     * 文件大小限制值错误
     */
    ResultCode WRONG_FILE_SIZE_LIMIT = ResultCode.newInstance(40022, "wrong_file_size_limit");
    /**
     * 管控成员不能为空
     */
    ResultCode CONTROL_MEMBER_NOT_EMPTY = ResultCode.newInstance(40023, "control_member_not_empty");
    /**
     * 存在相同的策略名！
     */
    ResultCode SAME_POLICY_NAME_EXISTS = ResultCode.newInstance(40024, "same_policy_name_exists");
    /**
     * 格式不正确！
     */
    ResultCode THE_VALUE_FORMAT_IS_INCORRECT = ResultCode.newInstance(40025, "The_value_format_is_incorrect");


}
